FROM debian:13.1-slim
LABEL author=xiaoyilin
LABEL email=406735078@qq.com
ARG JULIA_V
ENV TZ=Asia/Shanghai
ADD julia-${JULIA_V}-linux-x86_64.tar.gz /usr/local/
ENV JULIA_HOME=/usr/local/julia-${JULIA_V}
ENV PATH=$JULIA_HOME/bin:$PATH
WORKDIR /usr/local/
CMD ["julia","-version"]

# docker build --build-arg JULIA_V=1.10.10 -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/julia:1.10.10 .
# docker run --rm registry.cn-hangzhou.aliyuncs.com/xiaoyilin/julia:1.10.10
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/julia:1.10.10